
@dslClass({ language: "java", code: "String", name: "" })
export class String {

    @dslMethod({ language: "java", name: "获取字符串长度"})
    public length(): number ;

    @dslMethod({ language: "java", name: "截取字符串", code: "substring" })
    public substring(@dslParameter({ name: "开始位置",numberType:"int" }) beginIndex: number) : string  ;

    @dslMethod({ language: "java", name: "截取字符串", code: "substring" })
    public substring(@dslParameter({ name: "开始位置",numberType:"int" }) beginIndex: number , @dslParameter({ name: "结束为止",numberType:"int" }) endIndex: number) : string ;

    @dslMethod({ language: "java", name: "切分字符串", code: "split" })
    public split(@dslParameter({ name: "正则表达式" }) regExp: string) : string[] ;

    @dslMethod({ language: "java", name: "是否相等", code: "equals" })
    public equals(@dslParameter({ name: "是否相等" }) target: string) : boolean ;

    @dslMethod({ language: "java", name: "是否包含", code: "contains" })
    public contains(@dslParameter({ name: "是否包含" }) target: string) : boolean ;

    public startsWith( prefix:string ) : boolean ;

    public equals( str:string ) : boolean ;

}